/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.5;
}

/* 页面容器 */
.container-fluid {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 标题样式 */
h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
    padding: 15px 0;
    font-size: 28px;
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

h1 .glyphicon {
    margin-right: 10px;
    top: 3px;
}

/* 分隔线 */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

/* 搜索栏样式 */
.search-bar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 25px;
}

.search-bar .form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

/* 表单项 */
.form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    min-width: 180px;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
    outline: none;
}

/* 日期选择器样式 */
.input-group {
    min-width: 180px;
}

.input-group-addon {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-left: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-group-addon:hover {
    background-color: #e9ecef;
}

/* 按钮样式 */
.btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0 5px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-default {
    background-color: #ecf0f1;
    color: #333;
}

.btn-default:hover {
    background-color: #bdc3c7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-warning {
    background-color: #f39c12;
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 表格样式 */
.showTable {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: max-content;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.table tr:nth-child(even) {
    background-color: #f8f9fa;
}

/*.table tr:hover {*/
/*    background-color: #e3f2fd;*/
/*}*/

.table th:first-child,
.table td:first-child {
    border-top-left-radius: 4px;
}

.table th:last-child,
.table td:last-child {
    border-top-right-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }

    .search-bar .form-inline {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-control {
        min-width: auto;
        width: 100%;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    .table {
        display: block;
        overflow-x: auto;
    }

    h1 {
        font-size: 24px;
        padding: 12px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-bar, .showTable {
    animation: fadeIn 0.5s ease-out;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #bdc3c7;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #95a5a6;
}
